package bj.yanchao.com.githubdemo.modules;

import android.app.Application;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * ${TODO} What the class does
 *
 * @author： yanchao
 * @date： 6/4/16-3:52 PM
 * ${TAGS}
 */
@Module
public class NetModule {

    @Provides
    @Singleton
    SharedPreferences providesSharedPreferences(Application app) {
        return PreferenceManager.getDefaultSharedPreferences(app);
    }
}
